<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page session="false" %>

<div id="comment-list-wrapper" <c:if test="${fn:length(comments) <= 0}">style="display:none;"</c:if>> 
<p><a name="comments"></a></p>
<h3 class="sub-title">Comments</h3>
<ol id="comments">
  
	<c:forEach items="${comments}" var="comment">
		<li class="comment-entry">
		  <img class="avatar" src="${comment.avatarLink}" height="64" width="64">
			<div class="triangle-left"></div>
			<div class="the-comment">
				<div class="comment-meta">
					<fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${comment.createTime}" />
				</div>
				<div class="comment-author">
					<c:if test="${ not empty comment.publisherWebsite}">
						<a href="${comment.publisherWebsite}">${comment.publisherName}</a> says:
          </c:if>
					<c:if test="${ empty comment.publisherWebsite}">
            ${comment.publisherName} says:
          </c:if>
				</div>
				<p>${comment.content}</p>
			</div>
	  </li>
	</c:forEach>

</ol>
</div>